using System.Collections;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;

public class EnemyBoardView : MonoBehaviour
{
    //[SerializeField] private List<Transform> slots;
    //public List<EnemyView> EnemyViews { get; private set; } = new();
    //public void AddEnemy(EnemyData enemyData)
    //{
    //    Transform slot = slots[EnemyViews.Count];
    //    EnemyView enemyView = EnemyViewCreator.Instance.CreateEnemyView(enemyData, slot.position, slot.rotation);
    //    enemyView.transform.parent = slot;
    //    EnemyViews.Add(enemyView);
    //}

    ////这个函数用于在敌人死亡时从敌人视图中删除敌人
    //public IEnumerator RemoveEnemy(EnemyView enemyView)
    //{
    //    EnemyViews.Remove(enemyView);
    //    Tween tween = enemyView.transform.DOScale(Vector3.zero, 0.25f);
    //    yield return tween.WaitForCompletion();
    //    Destroy(enemyView.gameObject);                                                 
    //}
}
